package com.innerclass;

public class MemberInnerClass01 {
    public static void main(String[] args) {
        Outer08 outer08 = new Outer08();
        outer08.t1();
    }

}

class Outer08 {
    private int n1 = 10;
    public String name = "张三";

    //本身就是成员，可以用修饰符修饰
    private class Inner08 {
        public void say() {
            System.out.println("Outer08的n1 = " + Outer08.this.n1 + "Outer08的name  = " + Outer08.this.name);
        }
    }

    public void t1() {
        Inner08 inner08 = new Inner08();
        inner08.say();
    }

}
